/*
 * @Author: weiwang
 * @Date:   2018-12-01 12:46:34
 * @Last Modified by:   weiwang
 * @Last Modified time: 2018-12-01 12:54:24
 */
export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', component: './User/Login' },
      { path: '/user/register', component: './User/Register' },
    ],
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    authority: ['admin', 'user'],
    routes: [
      // dashboard
      { path: '/', redirect: '/dashboard/analysis' }, {
        path: '/dashboard',
        name: 'dashboard',
        icon: 'dashboard',
        routes: [{
          path: '/dashboard/analysis',
          name: 'analysis',
          component: './Dashboard/Analysis',
        }, ],
      }, {
        component: '404',
      },
    ],
  },
]